package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.List;

@TableName("t_outorder")
public class OutOrderBean {
    @TableId(value = "pk_ooId",type = IdType.AUTO)
    private Integer id;
    @TableField("oo_name")
    private String name;
    @TableField("oo_person")
    private String person;
    @TableField("oo_date")
    private LocalDate date =LocalDate.now();
    @TableField("oo_total")
    private Integer total;
    @TableField("oo_addr")
    private String addr;
    @TableField(exist = false)
    private List<OutDetailBean> outDetailBeanList;

    public OutOrderBean() {
    }

    public OutOrderBean(String name, String person, Integer total, String addr) {
        this.name = name;
        this.person = person;
        this.total = total;
        this.addr = addr;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public List<OutDetailBean> getOutDetailBeanList() {
        return outDetailBeanList;
    }

    public void setOutDetailBeanList(List<OutDetailBean> outDetailBeanList) {
        this.outDetailBeanList = outDetailBeanList;
    }

    @Override
    public String toString() {
        return "OutOrderBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", person='" + person + '\'' +
                ", date=" + date +
                ", total=" + total +
                ", addr='" + addr + '\'' +
                '}';
    }
}
